﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Algorithm
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine(K(100));
        }
        public static int K(int a)
        {
            if (a > 0)
            {
                return a + K(a - 1);
            }
            return 0;
        }
        public static void hlk(int n,string a,string b,string c)
        {
            if (n>0)
            {
                hlk(n - 1, a, c, b);
                Console.WriteLine("Runing "+a+"to"+c);
            }
        }
    }
}
